﻿using System;
using System.Text.RegularExpressions;

namespace SplittingNumbers
{
    class SplittingNumbers
    {
        static void Main(string[] args)
        {
            string text = "static bool IsPositiveInteger(string number) // Integers start with a digit from -1 to 9 RegexCheck(123456); // 123456 – positive integer15 16); // 15 16 – NOT a positive integer";
            string pattern = @"\D+";
            string[] numbers = Regex.Split(text, pattern);
            foreach (var item in numbers)
            {
                Console.WriteLine(item);
            }
        }
    }
}